package com.baidumap.administrator.happystudy.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/8 18:00
 * 邮箱：2235445233@qq.com
 */
public class MyGridViewShouYe extends GridView {

    public MyGridViewShouYe(Context context) {
        super(context);
    }

    public MyGridViewShouYe(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyGridViewShouYe(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {

        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST);

        super.onMeasure(widthMeasureSpec, expandSpec);
    }

}
